// import from "../../apis/mine.js"
import apis from "../../http/apis"
export default {
	namespaced: true,
	state: {
		//初始列表数据
		// list: []
		// orderInfo:[]
		goodsOrderList:[],
		serviceOrderList:[]
	},
	mutations: {
		setOrderAllinfo(state, data) {
			state.goodsOrderList=data.productOrders
			state.serviceOrderList=data.carserviceOrders
		}
	},
	actions: {
		//context
		async getOrderAllInfo(context){
			// console.log(params)
			// console.log(params)
			const data=await apis.getGoodsOrderAll();
			context.commit('setOrderAllinfo',data.data)
			console.log(111,data)
			// return (data.data)
			// const data2=await apis.getServiceOrderAll();
			// console.log(222,data2)
		}
	},
}
